/**
 * @author Tibor Kiray
 */
Ext.BLANK_IMAGE_URL = 'lib/ext/resources/images/default/s.gif';
Ext.apply(Ext.form.VTypes, {
    'numeric': function(){
        var numericRe = /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/;
        return function(v){
            return numericRe.test(v);
        }
    }(),
    'numericText': 'Not a valid numeric number. Must be numbers',
    'numericMask': /[0-9]/
});
/**
 * Disable global right click
 */
Ext.onReady(function(){
    Ext.fly(document.body).on('contextmenu', onContextMenu, this);
    function onContextMenu(e, target){
        e.preventDefault();
    };
    Softab.GetViewPort();
	Ext.get('loading-mask').fadeOut({duration:1});
    Ext.get('loading').fadeOut({duration:1});
});
